<%@ include file= "jsp-header.jsp" %>

<c:if test = "${not empty errorMessage}">
	<div class = "errorblock">
		Your login attempt was not successful, try again.<br /> Caused :
		${errorMessage}
	</div>
</c:if>

<c:if test="${not empty successMessage}">
	<script type="text/javascript">
		alert('${successMessage}');
	</script>
</c:if>

<form method="post" action="${contextPath}/register">
	<table>
		<tr>
			<td>
				<spring:message code="label.username" />
			</td>
			<td>
				<input type="text" name = "userName" />
			</td>
		</tr>
		<tr>
			<td>
				<spring:message code="label.password" />
			</td>
			<td>
				<input type="password" name = "userPass" />
			</td>
		</tr>
		<tr>
			<td>
				<spring:message code="label.confirmPass" />
			</td>
			<td>
				<input type="password" name = "userPassConf" />
			</td>
		</tr>
		<tr>
			<td>
				<input type="submit" value = "register" />
			</td>
		</tr>
	</table>
</form>